function pMessage() {

	var customer = {
		cuName : $("#cuName").val(),
		qqNumber : $("#qqNumber").val(),
		phoneNumber : $("#phoneNumber").val(),
		address : $("#address").val(),
		email : $("#email").val()
	};

	$.ajax({
		type : "post",
		url : "customerAction!cuEdit.action",
		data : customer,
		dataType : "json",

		success : function(result) {
			//alert("result:" + result);
			if (result.code=="003") {
				alert(result.msg);
				window.location.href = "main.jsp";
			}
			if (result.code == "001") {
				alert("未登录");
				window.location.href = "index.jsp";
			}
			
		},

		error : function(XMLHttpRequest, textStatus, errorThrown) {
			alert("XMLHttpRequest: " + XMLHttpRequest);
			alert("textStatus: " + textStatus);
			alert("errorThrown: " + errorThrown);
		}
	});
}
